﻿using Library.Core.Infrastructure.PersistenceObject;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Synthesize.Infrastructure.PersistentObjects.Authority
{
    /// <summary>
    /// 部门表
    /// </summary>
    [Table("BaseSet_DepartmentInfo")]
    public class DepartmentInfo : PersistenceObjectBase
    {

        /// <summary>
        /// 角色名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 父节点Id
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column(TypeName = "decimal(8, 3)")]
        public decimal Sort { get; set; }

    }
}
